broken pre-commit script
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 28 Dec 2006 04:22:46 +0000 (04:22 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 28 Dec 2006 04:22:46 +0000 (04:22 +0000)
ChangeLog
modules/printbackends/lpr/gtkprintbackendlpr.c

index 117e1c32073f147bfefad8b9cf4089293a5b8f79..8adfc2997c4009215eac78917b0f69b32a455b25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-12-27  Matthias Clasen  <mclasen@redhat.com>
+
+       * modules/printbackends/lpr/gtkprintbackendlpr.c 
+       (gtk_print_backend_lpr_print_stream): Close the io channel
+       on unref.  (#390159, Joe Markus Clarke)
+
 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/gdk.h: Remove redundant declarations (#390097,
index 23c041df342e7f07e0b2e7c1ab287ac3c9c8b834..3466165dead56fafa06fe8206beca87f48b0aae5 100644 (file)
@@ -372,6 +372,8 @@ gtk_print_backend_lpr_print_stream (GtkPrintBackend        *print_backend,
       goto out;
     }
 
+  g_io_channel_set_close_on_unref (ps->in, TRUE);
+
   g_io_add_watch (data_io, 
                   G_IO_IN | G_IO_PRI | G_IO_ERR | G_IO_HUP,
                   (GIOFunc) lpr_write,